
export enum MessageType {
    COMMENT = 'comment',
    LIKE = 'like',
    COLLECT = 'collect',
    LIKE_COLLECT = 'like,collect',
}

export interface MessageMeta {
  type: string;
  postId: string;
  commentId: string;
  content: string;
  sourceId: string;
  postsId: string;
  fishSiteId: string;
  parentId: string;
}

export interface TableResult<T> {
  rows: T[];
  total: number;
}

export interface MessageVO {
    /**
     * 通知ID
     */
    messageId: string | number;
  
    /**
     * 接收通知的用户
     */
    userId: string | number;

    username: string;
  
    /**
     * 发送通知的用户
     */
    senderId: string | number;

    senderUsername: string;

    senderAvatar: string;
  
    /**
     * 通知类型
     */
    type: string;
  
    /**
     * 消息来源ID，例如帖子ID或评论ID
     */
    sourceId: string | number;
  
    /**
     * 消息跳转时的参数
     */
    meta: MessageMeta;
  
    /**
     * 通知内容
     */
    value: string;
  
    /**
     * 是否已读
     */
    readFlag: string;

    likeCommentFlag: boolean;
    postsId: string;

}

